<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%@ include file="head.jsp"%>
<%
	NewsDaoImpl newsDaoImpl=new NewsDaoImpl();
	List<News> news=newsDaoImpl.getNewsList().subList(0, 8);

 %>

<table width="991" height="200" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="19" valign="top"></td>
    <td width="446" valign="top"><table width="446" height="27" border="0" cellpadding="0" cellspacing="0" style="margin-top:16px;">
      <tr>
        <td width="28"><img src="images/imgbyj/left1.gif" width="28" height="27" /></td>
        <td width="68" background="images/imgbyj/left2.gif" class="ab1">关于我们</td>
        <td width="305" background="images/imgbyj/left3.gif"></td>
        <td width="45"><a href="Aboutus.asp?Title=企业简介">
		<img src="images/imgbyj/left4.gif" width="45" height="27" border="0" /></a></td>
      </tr>
    </table>
        <table width="446" height="173" border="0" cellpadding="0" cellspacing="0" style="margin-top:16px;">
          <tr>
            <td width="139" valign="top">
			<img src="images/imgbyj/left5.gif" width="139" height="136" /></td>
            <td width="307" valign="top"><table width="307" height="173" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="23" valign="top" class="ab2">欢迎光临<%=configure.getSiteTitle()%></td>
                </tr>
                <tr>
                  <td height="150" valign="top" class="ab41">
                      <a href="Aboutus.asp"><%=new AboutusDaoImpl().getContent("企业简介").trim().substring(0, 250) %>[详细]</a> </td> 
                </tr>
            </table></td>
          </tr>
      </table></td>
    <td width="33" valign="top"></td>
    <td width="476" valign="top"><table width="476" height="27" border="0" cellpadding="0" cellspacing="0" style="margin-top:16px;">
      <tr>
        <td width="29"><img src="images/imgbyj/left1.gif" width="28" height="27" /></td>
        <td width="72" background="images/imgbyj/left2.gif" class="ab1">新闻中心</td>
        <td width="330" background="images/imgbyj/left3.gif" ></td>
        <td width="45"><a href="NewsClass.asp?BigClass=1">
		<img src="images/imgbyj/left4.gif" width="45" height="27" border="0" /></a></td>
      </tr>
    </table>
        <table width="476" height="173" border="0" cellpadding="0" cellspacing="0" style="margin-top:16px;">
          <tr>
            <td width="150" valign="top">
			<img src="images/imgbyj/news1.gif" width="150" height="135" /></td>
            <td width="326" valign="top">
<%
	for(News n:news){
 %>					
			<table width="326" height="26" border="0" cellpadding="0" cellspacing="0">

                <tr>
                  <td width="10" class="ab3">·</td>
                  <td width="236"><a href="" target="_blank"> <a href="shownews.jsp?id=<%=n.getId()%>"><%=n.getTitle()%></a></a>
</td>
                  <td width="80" class="time1"><%=new SimpleDateFormat("yyyy-MM-dd").format(n.getAddDate()) %></td>
                </tr>
              
              </table>
                <table width="326" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="1" background="images/imgbyj/dot1.gif"></td>
                  </tr>
                </table>
				  <%} %>
<%-- <%rs_news.movenext
i=i+1
if i=6 then exit do
loop
rs_news.close %> --%>
				
		 
				
            </td>
          </tr>
      </table></td>
    <td width="17" valign="top"></td>
  </tr>
</table>
<table width="991" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="19" valign="top"></td>
    <td width="446" valign="top">
	<table width="446" height="27" border="0" cellpadding="0" cellspacing="0" style="margin-top:16px; margin-bottom:21px;">
      <tr>
        <td width="28"><img src="images/imgbyj/left1.gif" width="28" height="27" /></td>
        <td width="68" bgcolor="#FDFDEE" class="ab1">产品服务</td>
        <td width="350" background="images/imgbyj/p2.gif"></td>
      </tr>
    </table>
        
		                                                
    <table width="446" border="0" cellpadding="0" cellspacing="0" style="margin-top:16px;">
      <tr>
        <td width="139" height="139" valign="top">
		<style type="text/css">
<!--

#demo {
	MARGIN: auto; OVERFLOW: hidden; WIDTH: 120px;  TEXT-ALIGN: center
}
-->
</style>
<DIV id=demo>
        <TABLE height=110 cellSpacing=0 cellPadding=0 align=left border=0 
            cellspace="0" style="padding-top:4px;">
          <TBODY>
            <TR>
              <TD id=demo1 vAlign=top><!--滚动区的高度和宽度-->
                    <TABLE width=170 height="91" 
                  border=0 align=center cellPadding=0 cellSpacing=0 cellspace="0">
                      <TBODY>
                        <TR>
                          <TD id=demo1 vAlign=top><span id="tb_A101">
              <!--------------------显示最新产品的子程序开始--------------------->
                            <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
                                           <%--   <%
Product_count=6
set rs_Product=server.createobject("adodb.recordset")
sqltext="select top " & Product_count & " * from Product where Passed=True order by UpdateTime desc"
rs_Product.open sqltext,conn,1,1
%>                             
                              <tr align="center">
<%
           If rs_Product.eof and rs_Product.bof then
           response.write "<td><p align='center'><font color='#ff0000'>还没任何产品</font></p></td>"
           else
			  row_count=1
			  Do While Not rs_Product.EOF%> 
                                <td align="center" width="130"><a href="ProductShow.asp?ID=<%=rs_Product("id")%>"><img src=<%=rs_Product("DefaultPicUrl")%> style="BORDER-RIGHT: #C0C0C0 1px solid; BORDER-TOP: #C0C0C0 1px solid; BORDER-LEFT: #C0C0C0 1px solid; BORDER-BOTTOM: #C0C0C0 1px solid"  width="120" height="110" border=0 ></a></td>
								<td width="8"></td>
                                              <%
rs_Product.MoveNext
row_count=row_count+1
Loop
end if
rs_Product.close
%> --%>
                                
                              </tr>

</table>
<!--------------------显示最新产品的子程序结束--------------------->
</span></TD>
                          <TD id=demo2 vAlign=top width=2></TD>
                        </TR>
                      </TBODY>
                  </TABLE>
                <!--最新图文代码结束--></TD>
              <TD id=demo2 vAlign=top></TD>
            </TR>
          </TBODY>
        </TABLE>
      </DIV>
<script language="JavaScript" type="text/javascript">
// JavaScript Document

var speed=20;
document.getElementById("demo2").innerHTML=document.getElementById("demo1").innerHTML
function Marquee(){
if(document.getElementById("demo2").offsetWidth-document.getElementById("demo").scrollLeft<=0)
document.getElementById("demo").scrollLeft-=document.getElementById("demo1").offsetWidth
else{
document.getElementById("demo").scrollLeft++;
}
}
var MyMar=setInterval(Marquee,speed)
document.getElementById("demo").onmouseover=function() {clearInterval(MyMar)}
document.getElementById("demo").onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>    
								  
		
		</td>
        <td width="307" valign="top"><table width="307" height="130" border="0" cellpadding="0" cellspacing="0">
            
            <tr>
              <td valign="top" class="ab41"><a href="Product.asp" class="about">
<%--                 <%Set rs3 = Server.CreateObject("ADODB.Recordset")
sql="select Content from Aboutus where Title='首页产品服务'"
rs3.open sql,conn,1,3%>
                <%=rs3("content")%>
                <%rs3.close
rs=nothing%> --%>
<FONT face=Verdana>在当今中国，很多行业都还没有到达品牌消费阶段，在这些行业，产品第一，品牌第二，特别是对中小企业而言，提升产品力是一个不得不完成的任务，跨过去了，就有大幅提升销量，做大市场份额的机会，跨不过去，将会很难... </FONT>

                [了解更多产品] </a></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
    <td width="33" valign="top"></td>
    <td width="476" valign="top"><table width="476" height="38" border="0" cellpadding="0" cellspacing="0" bgcolor="#EDECDD">
      <tr>
        <td width="10"></td>
        <td width="314" class="m1"><b>服务热线：<%=configure.getEnterpriseMail()%></b></td>
        <td width="70">&nbsp;</td>
        <td width="70"><a href='tencent://message/?uin=<%=configure.getLogoUrl()%> --%>&amp;Site=在线客服&amp;Menu=yes'>
		<img src="images/imgbyj/qq1.gif" width="60" height="16" border="0" /></a></td>
        <td width="12"></td>
      </tr>
    </table>
        <table width="476" height="119" border="0" cellpadding="0" cellspacing="0" style=" margin-top:15px;">
          <tr>
            <td><a href="CompHonor.asp">
			<img src="images/imgbyj/con3.gif" width="118" height="119" border="0" /></a></td>
            <td><a href="HrDemand.asp">
			<img src="images/imgbyj/con4.gif" width="118" height="119" border="0" /></a></td>
            <td><a href="Feedback.asp">
			<img src="images/imgbyj/con5.gif" width="118" height="119" border="0" /></a></td>
            <td><a href="Aboutus.asp?Title=联系我们">
			<img src="images/imgbyj/con6.gif" width="122" height="119" border="0" /></a></td>
          </tr>
      </table></td>
    <td width="17" valign="top"></td>
  </tr>
</table>
<%@ include file="foot.jsp"%>
